package com.woniu.houtai.vo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
@Getter
@Setter
public class CommentVo {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    private Integer userId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("shop_id")
    private Integer shopId;

    @TableField("comments")
    private String comments;

    @TableField("grade")
    private Double grade;

    @TableField("reply")
    private String reply;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("reply_time")
    private Date replyTime;


    private String orderDetails;


    private BigDecimal totalPrice;

    @Override
    public String toString() {
        return "CommentVo{" +
                "id=" + id +
                ", userId=" + userId +
                ", orderId=" + orderId +
                ", shopId=" + shopId +
                ", comments='" + comments + '\'' +
                ", grade=" + grade +
                ", reply='" + reply + '\'' +
                ", createTime=" + createTime +
                ", replyTime=" + replyTime +
                ", orderDetails='" + orderDetails + '\'' +
                ", totalPrice=" + totalPrice +
                '}';
    }
}
